<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>今天吃什么 - 美食详情</title>
  <script src="https://cdn.tailwindcss.com"></script>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <style>
    body {
      font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
      background-color: #f8f8f8;
    }
    .image-gallery::-webkit-scrollbar {
      display: none;
    }
  </style>
</head>
<body class="pb-20">
  <!-- 引入组件模板 -->
  <iframe src="components.html" class="hidden" id="components-frame"></iframe>
  
  <!-- 顶部导航栏 -->
  <div class="bg-white shadow-md px-4 py-3 flex items-center justify-between sticky top-0 z-10">
    <div class="flex items-center">
      <button class="mr-2 text-gray-600" onclick="window.history.back()">
        <i class="fas fa-arrow-left"></i>
      </button>
      <h1 class="text-lg font-medium text-gray-800">美食详情</h1>
    </div>
    <div class="flex">
      <button class="text-gray-600 px-2">
        <i class="fas fa-share-alt"></i>
      </button>
      <button class="text-gray-600 px-2 ml-2">
        <i class="far fa-heart"></i>
      </button>
    </div>
  </div>
  
  <!-- 美食图片 -->
  <div class="relative">
    <img src="https://images.unsplash.com/photo-1555126634-323283e090fa" alt="美食图片" class="w-full h-64 object-cover">
    <div class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-4">
      <div class="flex items-center">
        <span class="bg-orange-500 text-white text-xs px-2 py-1 rounded-full">热门推荐</span>
        <span class="bg-white/80 text-gray-800 text-xs px-2 py-1 rounded-full ml-2">
          <i class="fas fa-clock mr-1"></i> 15分钟
        </span>
      </div>
    </div>
  </div>
  
  <!-- 美食信息 -->
  <div class="bg-white p-4">
    <div class="flex justify-between items-start">
      <h2 class="text-xl font-bold text-gray-900">香辣牛肉面</h2>
      <div class="text-orange-500 font-bold">¥28</div>
    </div>
    
    <div class="flex items-center mt-2">
      <div class="flex text-yellow-400">
        <i class="fas fa-star text-sm"></i>
        <i class="fas fa-star text-sm"></i>
        <i class="fas fa-star text-sm"></i>
        <i class="fas fa-star text-sm"></i>
        <i class="fas fa-star-half-alt text-sm"></i>
      </div>
      <span class="text-xs text-gray-500 ml-1">4.5 (328条评价)</span>
      <span class="text-xs text-gray-500 ml-3">月售2000+</span>
    </div>
    
    <div class="flex items-center justify-between mt-3 pb-3 border-b border-gray-100">
      <div class="flex items-center">
        <i class="fas fa-map-marker-alt text-gray-400 mr-1"></i>
        <span class="text-sm text-gray-600">公司附近 500m</span>
      </div>
      <button class="text-sm text-blue-500">
        <i class="fas fa-directions mr-1"></i> 导航
      </button>
    </div>
  </div>
  
  <!-- 餐厅信息 -->
  <div class="bg-white mt-2 p-4">
    <div class="flex items-center">
      <img src="https://images.unsplash.com/photo-1552566626-52f8b828add9" alt="餐厅logo" class="w-12 h-12 rounded-full object-cover">
      <div class="ml-3">
        <h3 class="font-medium">老王牛肉面馆</h3>
        <p class="text-xs text-gray-500 mt-1">营业时间: 10:00-21:00</p>
      </div>
      <button class="ml-auto bg-orange-50 text-orange-500 text-sm px-3 py-1 rounded-full">
        进店看看
      </button>
    </div>
  </div>
  
  <!-- 美食图片展示 -->
  <div class="bg-white mt-2 p-4">
    <h3 class="font-medium mb-3">美食展示</h3>
    <div class="image-gallery flex overflow-x-auto space-x-3 pb-2">
      <img src="https://images.unsplash.com/photo-1555126634-323283e090fa" alt="美食图片" class="w-32 h-32 rounded-lg object-cover flex-shrink-0">
      <img src="https://images.unsplash.com/photo-1591814468924-caf88d1232e1" alt="美食图片" class="w-32 h-32 rounded-lg object-cover flex-shrink-0">
      <img src="https://images.unsplash.com/photo-1626804475297-41608ea09aeb" alt="美食图片" class="w-32 h-32 rounded-lg object-cover flex-shrink-0">
      <img src="https://images.unsplash.com/photo-1600490036275-35f5f1656861" alt="美食图片" class="w-32 h-32 rounded-lg object-cover flex-shrink-0">
    </div>
  </div>
  
  <!-- 美食描述 -->
  <div class="bg-white mt-2 p-4">
    <h3 class="font-medium mb-2">美食介绍</h3>
    <p class="text-sm text-gray-600 leading-relaxed">
      香辣牛肉面是一道经典的中式面食，选用上等牛腱肉，配以秘制香辣汤底，面条劲道爽滑，肉质鲜嫩，汤汁浓郁，香辣可口。是午餐的绝佳选择，深受上班族喜爱。
    </p>
    
    <div class="mt-3 flex flex-wrap">
      <span class="bg-gray-100 text-gray-600 text-xs px-2 py-1 rounded-full mr-2 mb-2">不辣不要钱</span>
      <span class="bg-gray-100 text-gray-600 text-xs px-2 py-1 rounded-full mr-2 mb-2">招牌菜品</span>
      <span class="bg-gray-100 text-gray-600 text-xs px-2 py-1 rounded-full mr-2 mb-2">可加面</span>
      <span class="bg-gray-100 text-gray-600 text-xs px-2 py-1 rounded-full mr-2 mb-2">免费WiFi</span>
    </div>
  </div>
  
  <!-- 用户评价 -->
  <div class="bg-white mt-2 p-4">
    <div class="flex justify-between items-center mb-3">
      <h3 class="font-medium">用户评价</h3>
      <a href="#" class="text-sm text-gray-500">查看全部 <i class="fas fa-chevron-right text-xs"></i></a>
    </div>
    
    <div class="space-y-4">
      <!-- 评价1 -->
      <div class="pb-3 border-b border-gray-100">
        <div class="flex items-center">
          <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="用户头像" class="w-8 h-8 rounded-full">
          <div class="ml-2">
            <div class="font-medium text-sm">李小姐</div>
            <div class="flex text-yellow-400 text-xs mt-1">
              <i class="fas fa-star"></i>
              <i class="fas fa-star"></i>
              <i class="fas fa-star"></i>
              <i class="fas fa-star"></i>
              <i class="fas fa-star"></i>
            </div>
          </div>
          <div class="ml-auto text-xs text-gray-400">3天前</div>
        </div>
        <p class="text-sm text-gray-600 mt-2">
          牛肉很嫩，面条劲道，汤底很香，每次来公司附近都会吃一碗，强烈推荐！
        </p>
        <div class="flex mt-2 space-x-2">
          <img src="https://images.unsplash.com/photo-1591814468924-caf88d1232e1" alt="评价图片" class="w-16 h-16 rounded object-cover">
        </div>
      </div>
      
      <!-- 评价2 -->
      <div>
        <div class="flex items-center">
          <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="用户头像" class="w-8 h-8 rounded-full">
          <div class="ml-2">
            <div class="font-medium text-sm">张先生</div>
            <div class="flex text-yellow-400 text-xs mt-1">
              <i class="fas fa-star"></i>
              <i class="fas fa-star"></i>
              <i class="fas fa-star"></i>
              <i class="fas fa-star"></i>
              <i class="far fa-star"></i>
            </div>
          </div>
          <div class="ml-auto text-xs text-gray-400">1周前</div>
        </div>
        <p class="text-sm text-gray-600 mt-2">
          味道不错，就是有点辣，下次要少放辣椒。服务态度很好，出餐速度快。
        </p>
      </div>
    </div>
  </div>
  
  <!-- 底部操作栏 -->
  <div class="fixed bottom-0 left-0 right-0 bg-white shadow-lg px-4 py-3 flex items-center">
    <button class="flex-1 bg-orange-500 text-white py-2 rounded-full text-center">
      立即点餐
    </button>
  </div>
  
  <script>
    // 等待组件iframe加载完成
    document.getElementById('components-frame').onload = function() {
      const componentsDoc = document.getElementById('components-frame').contentDocument;
    };
  </script>
</body>
</html> 